<ul class="fields">
<?php foreach ($keys as $k): ?>
	<?php $isNew = in_array($k, $new); $isDeleted = in_array($k, $deleted); ?>
	<li class="<?php echo $isNew?'new':'',$isDeleted?'deleted':''; ?>">
		<a rel="<?php echo $k; ?>"><?php echo $k; ?></a>
	</li>
<?php endforeach; ?>
</ul>